package com.cd2cd.code_template.code_template.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperSysFile implements Serializable {
    private Integer id;

    private Integer pid;

    /**
     * 文件夹、文件 名称
     */
    private String name;

    /**
     * file：文件  catalogue：目录
     */
    private String type;

    /**
     * 文件地址
     */
    private String path;

    /**
     * 文件类型：image，video，voice，pdf，text，other
     */
    private String fileType;

    /**
     * 操作id
     */
    private Integer operId;

    /**
     * 操作类型 h5，pc，app
     */
    private String operType;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 文件夹、文件 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 文件夹、文件 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * file：文件  catalogue：目录
     */
    public String getType() {
        return type;
    }

    /**
     * file：文件  catalogue：目录
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 文件地址
     */
    public String getPath() {
        return path;
    }

    /**
     * 文件地址
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 文件类型：image，video，voice，pdf，text，other
     */
    public String getFileType() {
        return fileType;
    }

    /**
     * 文件类型：image，video，voice，pdf，text，other
     */
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    /**
     * 操作id
     */
    public Integer getOperId() {
        return operId;
    }

    /**
     * 操作id
     */
    public void setOperId(Integer operId) {
        this.operId = operId;
    }

    /**
     * 操作类型 h5，pc，app
     */
    public String getOperType() {
        return operType;
    }

    /**
     * 操作类型 h5，pc，app
     */
    public void setOperType(String operType) {
        this.operType = operType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pid=").append(pid);
        sb.append(", name=").append(name);
        sb.append(", type=").append(type);
        sb.append(", path=").append(path);
        sb.append(", fileType=").append(fileType);
        sb.append(", operId=").append(operId);
        sb.append(", operType=").append(operType);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperSysFile other = (SuperSysFile) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getPath() == null ? other.getPath() == null : this.getPath().equals(other.getPath()))
            && (this.getFileType() == null ? other.getFileType() == null : this.getFileType().equals(other.getFileType()))
            && (this.getOperId() == null ? other.getOperId() == null : this.getOperId().equals(other.getOperId()))
            && (this.getOperType() == null ? other.getOperType() == null : this.getOperType().equals(other.getOperType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getPath() == null) ? 0 : getPath().hashCode());
        result = prime * result + ((getFileType() == null) ? 0 : getFileType().hashCode());
        result = prime * result + ((getOperId() == null) ? 0 : getOperId().hashCode());
        result = prime * result + ((getOperType() == null) ? 0 : getOperType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}